package dto

import (
	"itluv.me/ginessential/model"
)

type UserDto struct {
	Name      string `json:"name"`
	TelePhone string `json:"telePhone"`
}

func ToUseDto(user model.User) UserDto {
	return UserDto{
		Name:      user.Name,
		TelePhone: user.Telephone,
	}
}
